package com.liucxu.zimuzu.Model.Impl;

import com.liucxu.zimuzu.Api.HotServcie;
import com.liucxu.zimuzu.Model.Bean.HotBean;
import com.liucxu.zimuzu.Model.IHotModel;
import com.liucxu.zimuzu.Utils.ParamsUtils;
import com.liucxu.zimuzu.Utils.ServiceFactory;

import java.util.HashMap;

import rx.Observable;

/**
 * 今日热门的实现Model
 * Created by liukanshan on 2016/12/8.
 */

public class HotImpl implements IHotModel {
    @Override
    public Observable<HotBean> getTopHot(String channel) {
        HashMap<String,String> maps=new HashMap<>();
        maps=ParamsUtils.GetCommonParams();
        maps.put("limit","30");
        maps.put("channel", channel);
        return ServiceFactory.GetInstance().createService(HotServcie.class).getTopHot(maps);
    }
}
